package routers

import (
	"git.oschina.net/zd04/beego-shop/controllers"
	"git.oschina.net/zd04/beego-shop/controllers/userController"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	//用户
	beego.Router("/login", &userController.LoginUserController{})
	beego.Router("/logout", &userController.LogoutUserController{})
	beego.Router("/users", &userController.ListUserController{})
	beego.Router("/user/add", &userController.AddUserController{})
	beego.Router("/user", &userController.UpdateUserController{})
}
